package com.tuomaxu.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "tuomaxu-service-user")
@RequestMapping("/user")
public interface UserServiceFeignClient {

    @GetMapping("/validate/{token}")
    public boolean validate(@PathVariable("token") String token);
}
